//
//  SafeRootTabHeaderView.swift
//  PICCRisk
//
//  Created by Denny on 2024/3/6.
//  Copyright © 2024 刘转. All rights reserved.
//

import UIKit

class SafeRootTabHeaderView: UITableViewHeaderFooterView {
    @IBOutlet weak var icon: UIImageView!
    
    @IBOutlet weak var statusLB: UILabel!
    @IBOutlet weak var contentLB: UILabel!
    
    var isExtend: Bool = false  {
        didSet {
            self.icon.image = isExtend ? UIImage.init(named: "MYG_cloudDisk_arrow_down") : UIImage.init(named: "MYG_cloudDisk_arrow_up")
        }
    }
    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */

    @IBAction func tapAction(_ sender: Any) {
    }
    override  func awakeFromNib() {
        super.awakeFromNib()
        self.contentLB.adjustsFontSizeToFitWidth = true
    }
}
